package com.fuxin.hanfu.mapper;

import com.fuxin.hanfu.domain.Admin;
import com.fuxin.hanfu.domain.UserExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AdminMapper {
    long countByExample(UserExample example);

    int deleteByExample(UserExample example);

    int insert(Admin record);

    int insertSelective(Admin record);

    List<Admin> selectByExample(UserExample example);

    int updateByExampleSelective(@Param("record") Admin record, @Param("example") UserExample example);

    int updateByExample(@Param("record") Admin record, @Param("example") UserExample example);
    Admin findById(Integer userId);

    Integer update(Admin admin);

    Integer delete(Integer userId);

    Integer insertUser(Admin admin);


    Admin findByUsername(@Param("username") String username);
}
